import App from './App'

// 调用 store vuex 管理
import store from '@/store/index.js'

import { myRequest,richText } from './utils/api.js'

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)




//挂载到全局，让所有页面都能接收
Vue.prototype.$myRequest = myRequest //挂载到Vue的原型上
Vue.prototype.$richText = richText //挂载到Vue的原型上
Vue.prototype.imageUrl = 'https://dsby.hearoommed.com'
// Vue.prototype.imageUrl = 'http://192.168.0.3:11122'

import login from "components/login/login.vue"
import phone from "components/phone/phone.vue"


// 注册全局组件
Vue.component('login', login)


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif